/*
 * fuse-minitp.h
 *
 *  Created on: 03/11/2011
 *      Author: utn_so
 */

#ifndef FUSE_MINITP_H_
#define FUSE_MINITP_H_

#include <fuse.h>

	int minitp_mknod(const char *path, mode_t mode, dev_t dev);
	int minitp_open(const char *path, struct fuse_file_info *fi);
	int minitp_read(const char *path, char *buf,
			size_t size, off_t offset, struct fuse_file_info *fi);
	int minitp_write(const char *path, const char *buf, size_t size, off_t offset,
			struct fuse_file_info *fi);
	int minitp_flush(const char *path, struct fuse_file_info *fi);
	int minitp_release(const char *path, struct fuse_file_info *fi);
	int minitp_truncate(const char *path, off_t newsize);
	int minitp_unlink(const char * path);
	int minitp_mkdir(const char *path, mode_t mode);
	int minitp_readdir(const char * path , void *buf, fuse_fill_dir_t filler,
			off_t offset, struct fuse_file_info *fi);
	int minitp_rmdir(const char * path);
	int minitp_getattr(const char *path, struct stat *statbuf);
	int minitp_rename(const char * path, const char * newpath);

	//int startFuse(int , char ** , struct fuse_operations *);
	void * minitp_startFuse(void *);

#endif /* FUSE_MINITP_H_ */
